<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[#include "/admin/include/head.htm"]

    <script type="text/javascript">

        var grid;

        function f_export_loan(){
            $("#exportForm").submit();
        }

        $(function(){
            grid = $("#maingrid").ligerGrid({
                columns: [
                    {hide: true, name: 'path'},
                    {display: '用户ID', name: 'user_id', align: 'center', width: 200 },
                    {display: '项目名称', name: 'u_userName', align: 'center', width: 100 },

                    {display: 'total', name: 'total', align: 'center', width: 100,frozen:"true"},
                    {display: '账户总额', name: 'interest', align: 'center', width: 100,
                        render: function(row){
                            var data = parseFloat(row.total) +parseFloat(row.collection)+"";

                            if(data==0){
                                return "0.000";
                            }else{
                                return data;
                            }


                        }
                    },
                    {display: '账户余额', name: 'balance', align: 'center', width: 100 },
                    {display: '冻结金额', name: 'freezing_amont', align: 'center', width: 100},
                    {display: '投资待收', name: 'collection', align: 'center', width: 100},
                    {display: '活期宝总额', name: 'yuebao_total', align: 'center', width: 100}


                ],  pageSize:20, url: 'queryData.aspx',toolbar: {}, width: '100%', height:'100%', enabledSort: true
            });


            $(".l-toolbar").ligerToolBar({ items: [

                { text: '导出', click: f_export_loan }
            ]
            });
            //绑定搜索按钮
            LG.search(grid);
        });

    </script>
</head>
<body style="padding:10px; overflow:hidden;">
<div id="functions">
    <div class="clearfix">
        <div style="float:left;">
            <form id="exportForm" action="${path}/admin/bank/exportList.aspx">
				<span>
					用户Id：<input type="text" name="userId"  />
				</span>
				<span>
					用户名：<input type="text" name="userName"  />
				</span>
                申请时间：<input type="text" id="begin_date" name="begin_date"
                            class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
                -
                <input type="text" id="endDate" name="end_date"
                       class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
                <input type="button" class="button" value="搜索" id="search"/>
                <a href="#" id="search_btn_reset" face="Wingdings 3">清除本次搜索</a>
            </form>
        </div>
    </div>
</div>

<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>